<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="test/javascript">
            function getxhr(contact){
            var xhr=null;
            if (window.XMLHttpRequest){
            var xhr=new XMLHttpRequest();
            }
            else
            if(window.ActiveXObject){
            var xhr=new ActiveXObect("Microsoft.XMLHTTP");
            }
            else {
            alert("navigateur non compatible Ajax...");
            }
            
            xhr.onreadystatechange=function(){
            if(xhr.readyState==4 && xhr.status==200){
            var xmldocument=xhr.responseXML;
            var rang=(contact.selectedIndex-1);
            if(rang==-1){
            alert("Faites votre choix");
            }
            support=xmldocument.getElementByTagName("contact");
            var numero=support[rang].firstChild.nextSibling.firstChild.nodeValue;
            document.getElementById("tel").innerHTML=numero;
            }
            }
            xhr.open("GET", "sav.xml", true);
            }
        </script>
    </head>
</html>
